set(LLVM_LINK_COMPONENTS
  Option
  support
  )

add_clang_tool(code_comment
  code_comment.cpp
  code_comment/code_comment_info.cpp
  code_comment/code_comment_gen.cpp
  code_comment/code_comment_visitor.cpp
  )

clang_target_link_libraries(code_comment
  PRIVATE
  clangAnalysis
  clangAST
  clangASTMatchers
  clangBasic
  clangFrontend
  clangSerialization
  clangIndex
  clangLex
  clangTooling
  clangToolingCore
  clangToolingRefactoring
  )

# file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/include/fake_comment_func.h DESTINATION ${CMAKE_BINARY_DIR}/include/tools/code_comment/ FILE_PERMISSIONS OWNER_EXECUTE OWNER_READ OWNER_WRITE)
